var config = require('../../../../../config');
var mongoose = require('../../../../../framework/mongoose');

var videoSchema = new mongoose.Schema({
    title: String,
    descr: { type: String, ignoreIfNull: true },
    url: String,
    playUrl: String,

    order: String,
    status: Number,

    createTime: Date,
    updateTime: Date,
    subscription: { type: mongoose.Schema.Types.ObjectId, ref: 'app_subscription' }
}, config.schemaOptions);
videoSchema.virtual('id').get(function() {
    return this._id;
});
exports.CmsVideo = mongoose.model('cms_video', videoSchema);



